from django.urls import path
from .views import (
    AppointmentAPIView, AppointmentDetailAPIView, OrderAPIView, PatientAppointmentAPIView,
    doctor_appointment_stats
)

urlpatterns = [
    # 预约相关接口
    path('appointments/', AppointmentAPIView.as_view(), name='appointment_list_create'),
    path('appointments/<int:appointment_id>/', AppointmentDetailAPIView.as_view(), name='appointment_detail'),
    
    # 患者预约相关接口
    path('patients/<int:patient_id>/appointments/', PatientAppointmentAPIView.as_view(), name='patient_appointments'),
    path('patients/<int:patient_id>/appointments/<int:appointment_id>/', PatientAppointmentAPIView.as_view(), name='patient_appointment_delete'),
    
    # 订单相关接口
    path('orders/<int:order_id>/', OrderAPIView.as_view(), name='order_detail'),
    
    # 医生预约统计接口
    path('doctors/<int:doctor_id>/appointment-stats/', doctor_appointment_stats, name='doctor_appointment_stats'),
] 